<%-- 
    Document   : B1
    Created on : 2014/8/12, 上午 09:21:33
    Author     : Yu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
	<h1>=====B1=====</h1>

        <%=   session.getId()%><br>
	<a href="B2.jsp;jsessionid=<%=   session.getId()%>">B2</a><br>
	<form action="B2.jsp">
	    <input type="text" name="user">
	    <input type="submit" value="登入">


	</form>
	<%=session.getAttribute("user")%>
	<br>
	<a href="<%=response.encodeURL("B2.jsp")%>">B2</a>
	<form action="B3.jsp;jsessionid=<%= session.getId()%>"><br>
	    
            <input type="text" name="user">
            <input type="text" name="pname">
            <input type="submit">
        </form>

    </body>
</html>
